//
//  IconTEF.swift
//  OnemeetingDemo
//
//  Created by 张衡 on 2020/4/17.
//  Copyright © 2020 www.onemeeting.1meetingIos. All rights reserved.
//

import Foundation

class IconTEF: NSView {
    override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)
        self.setupUI()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupUI() {
        self.addSubview(icon)
        icon.snp.makeConstraints { (make) in
            make.width.equalTo(15)
            make.height.equalTo(18)
            make.centerY.equalToSuperview()
            make.left.equalTo(10)
        }
        
        self.addSubview(zhTEF)
        zhTEF.snp.makeConstraints { (make) in
            make.left.equalTo(icon.snp.right).offset(5)
            make.height.equalTo(18)
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-10)
        }
    }
    
    lazy var zhTEF: ZHTextField = {
        let tef = ZHTextField()
        tef.textField.placeholderString = "请输入密码"
        tef.textField.isBordered = false
        return tef
    }()
    
    
    lazy var icon: NSImageView = {
        let imageV = NSImageView.init(image: NSImage.imageNamed("icon_login_ano")!)
        return imageV
    }()
}
